package cn.z2huo.knowledge.collection.set;

import java.util.HashSet;

/**
 * <p>
 *
 * @author z2huo
 */
class HashCodeTest {

    public static void main(String[] args) {
        HashSet<String> stringHashSet = new HashSet<>();
        String string = "zyz";
        String string2 = "hhh";
        stringHashSet.add(string);
        System.out.println(string.hashCode());
        System.out.println(stringHashSet.hashCode());
        System.out.println();
        System.out.println(string2.hashCode());
        stringHashSet.add(string2);
        System.out.println(stringHashSet.hashCode());
    }
}
